package com.wqh.springboot.bucket.mybatis.plus.controller;

import com.wqh.springboot.bucket.mybatis.plus.domain.User;
import com.wqh.springboot.bucket.mybatis.plus.service.UserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author wqh
 */
@RestController
@RequestMapping("user")
public class UserController {

    @Resource
    private UserService userService;


    @GetMapping("/list1")
    public List<User> getUser1() {
        return userService.getUser1();
    }

    @GetMapping("/list2")
    public List<User> getUser2() {
        return userService.getUser2();
    }

    @GetMapping("/list3")
    public List<User> getUser3() {
        return userService.getUser3();
    }
}
